package com.huiztech.maystall.activity;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class BackProductActivity extends BaseActivity {

    private Button backBtn,submitBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_back_product);
        backBtn = (Button) findViewById(R.id.back_product_backbtn);
        submitBtn = (Button) findViewById(R.id.back_product_submit_btn);
        
        backBtn.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                finish();
            }
        });
        
        submitBtn.setOnClickListener(new OnClickListener() {
            
            @Override
            public void onClick(View v) {
                Toast.makeText(BackProductActivity.this, "信息已成功发送给我们，请等待联系！", Toast.LENGTH_SHORT).show();
                finish();
            }
        });
    }
}
